﻿<!--{inc(header.view.html)}-->

<div class="content" id="content">
	<div class="top-menu-box">
    	<div class="z">
            <span class="z-f"><a href="#">网站设置</a>&nbsp;&gt;</span>
            <span class="z-f"><a href="#">友情链接列表</a></span>
            <div class="z-f-r"><span class="user-t"><a href="{$site_url}"  target="_blank">网站首页</a></span><span class="user-info"></span><a href="index.php?app=default&act=quit" onClick="return confirm('确认退出管理系统吗？');"   >退出管理</a></div>
        </div>
        <div class="top-menu">
        	<ul>
            	<li class="current"><a href="#">友情链接列表</a></li>
				<li><a href="index.php?app=links&act=add"  target="mainframe">创建友情链接</a></li>				
				
				
            </ul>
            <div class="clear"></div>
        </div>
    </div>
    
    <div class="main">

    <table  class="data" >
        <thead>

	<th >排序</th>
	<th >导航标题</th>
	<th >链接地址</th>
	<th >链接LOGO</th>
	<th >操作</th>			
			
        </thead>
	    <tbody>
		
<?php foreach((array)$linksdata as $_key => $_value ) { ?>
<tr>
	<td>
	<input type="text" maxlength="2" style="width: 20px; text-align: center;" value="{$_value.sort}" name="sort"  onchange="ato_url('index.php?app=links&act=lsort&id={$_value.id}',this);">

	</td>
	<td><input type="text" value="{$_value.name}" name="title"  onchange="ato_url('index.php?app=links&act=lname&id={$_value.id}',this);"></td>
	<td><a target="_blank" href="{$_value.url}">{$_value.url}</a></td>
	<td><img width="88" height="31" border="0" src="{$_value.images_dir|picdir}"></td>
	<td>

	                                            <a href="?app=links&act=edit&id={$_value.id}" target="mainframe">修改</a>/
	                                            <a href="?app=links&act=del&id={$_value.id}" onClick="return confirm('确认删除此图片？此操作无法恢复！');">删除</a>

	</td>
</tr>

<?php } ?>


<tr>
	<td align="center" colspan="5"><input type="button" class="buton" value="添加新导航" onClick="to_url('index.php?app=links&act=add');" /> <input type="button" class="buton" value=" 更新 "  onClick="to_url('index.php?app=links&act=cache');" /></td>
</tr>		
		
	    </tbody>
    </table>
	

	
        
        <div class="notic"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b> <span >网站导航是PHPSCUP 新增的一个功能，它能让管理员在网站的顶部或底部添加自定义的链接扩展。</span> </div>
    </div>
</div>
<!--{inc(footer.view.html)}-->